﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Billing.Utilities;
using Billing.Dtos;
using System.Windows.Controls.Primitives;
using Billing.Controls;

namespace Billing.Windows
{
    public partial class Confirm : Window
    {
        public Confirm()
        {
            InitializeComponent();
            btnOK.Focus();
        }

        private void btnOK_Click(object sender, RoutedEventArgs e)
        {
            Storage.IsValid = true;
            this.Close();
        }

        private void Window_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.Escape)
            {
                Storage.IsValid = false;
                this.Close();
            }
        }
    }
}
